{extend name='main'}

{block name="button"}


{/block}

{block name="content"}
<div class="think-box-shadow">
    {include file='market/index_search'}
    <table class="layui-table margin-top-10" lay-skin="line">

        <thead>
        <tr>
          <th>产品ID</th>
          <th>产品名称</th>
          <th>所属分类</th>
          <th>所在地区</th>
          <th>产品原价</th>
          <th>产品卖价</th>       
          <th>产品数量</th>       
          <th>阅读量</th>
          <th>是否在架</th>
          <th>是否置顶</th>
          <th>状态</th>
          <th>来源</th>
          <th>添加时间</th>
          <th>联系人</th>
          <th>联系电话</th>
          <th>操作</th>
        </tr>
        </thead>

        <tbody>
        {foreach $list as $key=>$vo}  
        <tr >
        <td>{$vo.id}</td>
        <td title="{$vo.name}">{$vo.name}</td>
        <td>{$vo.cate.name|default='--'}</td>
        <td>{$vo.province}&nbsp;{$vo.city}</td>
        <td>{$vo.oprice}</td>
        <td>{$vo.money}</td>
        <td>{$vo.number|default=''}</td>
        <td>{$vo.click_num}</td>
        <td>{eq name='vo.is_show' value='0'}<span class="layui-badge">下架</span>{else}<span class="layui-badge layui-bg-green">上架</span>{/eq}</td>
        <td>{eq name='vo.top' value='0'}<span class="layui-badge">否</span>{else}<span class="layui-badge layui-bg-green">是</span>{/eq}</td>
        <td>{$vo.marketstatus}</td>
        <td>{eq name='vo.type' value='0'}前端{else/}平台{/eq}</td>
        <td> {$vo.add_time} </td>
        <td>{$vo.contacts}</td>
        <td>{$vo.mobile}</td>
        <td class='text-left nowrap'>
          {if auth("market/market/edit")}
            <a data-dbclick class="layui-btn layui-btn-sm" data-title="编辑用户" data-open='{:url("edit")}?id={$vo.id}'>详 情</a>
          {/if}
          
        </td>
        </tr>
        {/foreach}
        </tbody>
    </table>

    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}

</div>

{/block}
